package com.sg.model.finance.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sg.framework.common.annotations.LikeFlag;
import com.sg.framework.common.po.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.io.Serial;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.util.Date;

/**
 * 国标、部门校标、内容校标、内容个性
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_account_subject")   //7-1-06财务科目表。表不存在
public class OmsAccountSubject extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 科目ID
     */
    @TableId(value = "account_subjectld", type = IdType.ASSIGN_UUID)
    @NotNull(message = "accountSubjectld不能为空")
    private String accountSubjectld;

    /**
     * 科目标识
     */
    @TableField(value = "account_subject_code")
    @NotNull(message = "科目标识不能为空")
    @Schema(description = "科目标识")
    private String accountSubjectCode;

    /**
     * 科目名称
     */
    @TableField(value = "account_subject_name")
    @NotNull(message = "科目名称不能为空")
    @Schema(description = "科目名称")
    @LikeFlag(likeType = "LIKE")
    private String accountSubjectName;

    /**
     * 科目类型 NATIONAL_STANDARD:国家标准 DEPT_ORG_STANDARD:部门组织标准 CONTNET_STANDARD:内容标准 CONTENT_SELFDOM:内容个性
     */
    @TableField(value = "account_subject_type")
    @NotNull(message = "科目类型不能为空")
    @Schema(description = "科目类型")
    private String accountSubjectType;

    /**
     * 收支类型 INCOME:收入 SPENDING:支出
     */
    @TableField(value = "income_expenses_type")
    @NotNull(message = "收支类型不能为空")
    @Schema(description = "收支类型")
    private String incomeExpensesType;

    /**
     * 科目类别编码 BUDEGT_ACCOUNT_CLASS:预算账户类别 ENTITY_ACCOUNT_CLASS:实体账户类别 SYSTEM_CLASS:系统类别
     */
    @TableField(value = "account_subject_class_code")
    @Schema(description = "科目类别编码")
    private String accountSubjectClassCode;

    /**
     * 行为类型编码 ADD_STAFF:添加员工 GENERATE_NAME:生成名称 RETRIEVE_PASSWORD:找回密码 RESET_PASSWORD:修改密码 LOGIN:验证码登录 ADD_ADMIN:添加空间管理员 PERFECT_INFO:完善资料 BIND_MOBILE:绑定手机号 CHANGE_MOBILE:换绑手机 ADD_BUDGET:加预算 SUB_BUDGET:减预算 BUDGET_ARRIVAL:预算到账 ISSUE_OFFCIAL_DOC:公文下发 GENERATE_TO_BE_SIGNED_WORK_TASK_MSG_TEMP:工作任务待签收 SUPERVISE_TASK_ARRANGE:任务安排督办 Q_AND_A_MESSAGE_TEMPLATE:内容智能回答 THIRD_QA_SESSION_MESSAGE_TEMPLATE:独立三方智能问答 COMMENT_MESSAGE_TEMPLATE:内容评论消息 CHANNEL_MESSAGE_TEMPLATE:通道内发消息 WORK_SUMMARY_MESSAGE_TEMPLATE:提交工作总结 PROBLEM_SUMMARY_MESSAGE_TEMPLATE:提交问题总结 SOLUTION_IDEAS_MESSAGE_TEMPLATE:提交解决思路 IMPROVEMENT_SUGGESTIONS_MESSAGE_TEMPLATE:提交改进建议 NEW_REPORT_TASK_MSG_TEMP:新汇报任务 REPORT_TASK_WILL_OVERDUE_MSG_TEMP:汇报即将逾期 REPORT_TASK_OVERDUE_MSG_TEMP:汇报已逾期 NEW_TARGET_ARRANGE_MSG_TEMP:新目标安排 REPORT_TASK_REMIND_MSG_TEMP:汇报提醒 UPDATE_TARGET_VALUE_MSG_TEMP:修改目标值 REPORT_TASK_TO_BE_EVALUATEED_MSG_TEMP:汇报待评价 REPORT_TASK_TO_BE_EXAMINE_MSG_TEMP:汇报待审核 REPORT_TASK_REJECT_MSG_TEMP:汇报审核驳回 URGE_TARGET_ARRANGE_MSG_TEMP:目标安排督办 MID_BASIC_URGE_TARGET_ARRANGE_MSG_TEMP:部门目标安排督办
     */
    @TableField(value = "behavior_type_code")
    @Schema(description = "行为类型编码")
    private String behaviorTypeCode;

    /**
     * 是否资金指标 TRUE:是 FALSE:否
     */
    @TableField(value = "is_funds_index")
    @NotNull(message = "是否资金指标不能为空")
    @Schema(description = "是否资金指标")
    private String isFundsIndex;

    /**
     * 是否组织正式财务标准 TRUE:是 FALSE:否
     */
    @TableField(value = "is_org_official_account_nom")
    @NotNull(message = "是否组织正式财务标准不能为空")
    @Schema(description = "是否组织正式财务标准")
    private String isOrgOfficialAccountNom;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @TableField(value = "subject_life_cycle")
    @NotNull(message = "主体生命周期不能为空")
    @Schema(description = "主体生命周期")
    private String subjectLifeCycle;

    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @TableField(value = "is_archive")
    @NotNull(message = "是否存档不能为空")
    @Schema(description = "是否存档")
    private String isArchive;

    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @Schema(description = "操作人就职记录ID")
    private String operationInductionId;

    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID 不能为空")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;

    /**
     * 发布人就职记录ID
     */
    @TableField(value = "release_induction_id")
    @Schema(description = "发布人就职记录ID")
    private String releaseInductionId;

    /**
     * 存档人就职记录ID
     */
    @TableField(value = "archive_induction_id")
    @Schema(description = "存档人就职记录ID")
    private String archiveInductionId;

    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @Schema(description = "操作时间")
    private Date operateTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 发布时间
     */
    @TableField(value = "release_time")
    @Schema(description = "发布时间")
    private Date releaseTime;

    /**
     * 存档时间
     */
    @TableField(value = "archive_time")
    @Schema(description = "存档时间")
    private Date archiveTime;

    /**
     * 是否作废 TRUE:是 FALSE:否
     */
    @TableField(value = "is_valid")
    @NotNull(message = "是否作废不能为空")
    @Schema(description = "是否作废")
    private String isValid;

    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String spaceId;

    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
